home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-10-15 | 2.5 KB | 55 lines | [TEXT/MPS ] |
- SimpleOutMovies
-
- NOTES FOR BETA VERSION
-
- The API changed very much from the Alpha release to the beta; all efforts were made
- to comment every piece of the code that was modified. It is recommended to have the
- docs available in the Beta CD to compare with the modified code and understand the
- changes.
-
- One common question is what happens to all alias related stuff when running under
- 6.0.7; QuickTime™ makes sure all the calls necessary to play back movies are there
- whether under system 7 or 6.0.7.
- ======================================================================================
-
- SimpleOutMovies is a small sample that shows how to create a movie containing one video track and
- one sound track if a sound file is available. The video track data comes from a
- series of PICT files that are read in sequence and added using Apple Video Compressor
- with Frame diferencing.
-
- Files:
- SimpleOutMovies.r
- SimpleOutMovies.c
- SimpleOutSound.c
- SimpleOutFileStuff.c
-
- -SimpleOutMovies.r: Defines all the reources used by the program, no big deal.
-
- SimpleOutMovies.c: The main part of the program shows how to create a movie from
- scratch and how to add a video track to it.
-
- -SimpleOutSound.c: If the user has a file containing a sound then the routines listed
- in this file are called, they show how to add a sound track to an existing movie. The
- code shows two methods of adding samples directly (the data is copied into the movie
- file) and by reference (the data remains in the original file.)
-
- Some heavy assumptions are made regarding the nature of the sound data, nicer (and
- better written) apps should not hard code values as shown.
-
- #define __UseExternalFile__ if you want to set the external code working.
-
- -SimpleOutFileStuff.c: File I/O routines, for the video track the user selects a folder
- where all the pictures are, the code to select a folder is interesting by itself (I
- think.) For the sound file, it selects and opens either the data or resource fork of
- the selected file depending on the method used to add the samples.
-
- General Notes: The code was commented as completely as possible, the error handling is
- primitive at best but the objective was to make things as simple as possible in order
- to highlight the QuickTime areas.
-
- NOTES FOR BETA VERSION
-
- The API changed very much from the Alpha release to the beta; all efforts were made
- to comment every piece of the code that was modified. It is recommended to have the
- docs available in the Beta CD to compare with the modified code and understand the
- changes.